package com.ruanyun.modular.ry.mapper;

import com.ruanyun.modular.ry.entity.AppVersion;
import com.ruanyun.modular.ry.model.params.AppVersionParam;
import com.ruanyun.modular.ry.model.result.AppVersionResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 版本号 Mapper 接口
 * </p>
 *
 * @author conan
 * @since 2021-01-08
 */
@Repository
public interface AppVersionMapper extends BaseMapper<AppVersion> {

    /**
     * 获取列表
     *
     * @author conan
     * @Date 2021-01-08
     */
    List<AppVersionResult> customList(@Param("paramCondition") AppVersionParam paramCondition);

    /**
     * 获取map列表
     *
     * @author conan
     * @Date 2021-01-08
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") AppVersionParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author conan
     * @Date 2021-01-08
     */
    Page<AppVersionResult> customPageList(@Param("page") Page page, @Param("paramCondition") AppVersionParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author conan
     * @Date 2021-01-08
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") AppVersionParam paramCondition);

}
